package com.erp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/11/22/022.
 * 作者：刘洋
 */
public class ProdyctionClientBean {
    public String warehoused_num;//已入仓包数
    public String delivered_num;//已发货包数
    public String all_package_num;//总包数
    public String s_package_num;//纸包数
    public String m_package_num;//木包数
    public String rs_package_num;//热塑数
    public String id;
    public String onum;//生产单号
    public String contract_num;//销售订单号
    public String customer;//客户
    public String color;
    public String dingbaoyuan;
    public String dingbao_time;
    public String charge_auditor;//扣款审核人
    public String charge_audit_time;//扣款审核时间
    public String auditor;//生产审核人
    public String audit_time;//生产审核时间
    public String deliver_time;//发货时间
    public String ctime;//创建时间
    public String status;
    public String special_status;//等于5是已取消
    public String cabinet_counts;//柜数
    public List<String> deliver_voucher;
    public String type;
    public String  remark;//备注
    public String warehousing_time;//入仓时间
    public String content_description;//订购内容
    public String cd_acceptance_time;
    public String cd_time;
    public String cd_status;
    public String sqxd_time;//申请时间
    public String sqxd_uid;//申请人  sqxd_uid_name
    public String crm_oid;
    public String shop_name;//专卖店
    public String ot_name;//订单类型
    public String quoted_price_yuan_name;//报价审核人
    public String quoted_price_time;//报价审核时间
    public String productive_time;//生产下单时间
    public List<String> deliver_list;
    public String oid;

    public ArrayList<guimingxi> guimingx=new ArrayList<>();

    public static class guimingxi implements Parcelable {
        public String guihao;//柜号
        public String chaidanyuan;//拆单员dismantler_name
        public String chaidanshijian;//拆单时间c_dismantle_time
        public String rucangshijian;//入仓时间c_warehousing_time
        public String fahuoshijian;//发货时间c_deliver_time
        public String xiaowujing;
        public String zhuangtai;//状态status_name
        public ArrayList<String> tuzhis=new ArrayList<>();
        public String id;

        public String name;//柜名

        public String cte_time;//试装时间

        public String cte_problem;//试装问题


        @Override
        public String toString() {
            return "guimingxi{" +
                    "guihao='" + guihao + '\'' +
                    ", chaidanyuan='" + chaidanyuan + '\'' +
                    ", chaidanshijian='" + chaidanshijian + '\'' +
                    ", rucangshijian='" + rucangshijian + '\'' +
                    ", fahuoshijian='" + fahuoshijian + '\'' +
                    ", xiaowujing='" + xiaowujing + '\'' +
                    ", zhuangtai='" + zhuangtai + '\'' +
                    ", cte_time='" + cte_time + '\'' +
                    ", cte_problem='" + cte_problem + '\'' +
                    ", tuzhi='" + tuzhis.toString() + '\'' +
                    ", id='" + id + '\'' +
                    ", c_name='" + name + '\'' +
                    '}';
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.guihao);
            dest.writeString(this.chaidanyuan);
            dest.writeString(this.chaidanshijian);
            dest.writeString(this.rucangshijian);
            dest.writeString(this.fahuoshijian);
            dest.writeString(this.xiaowujing);
            dest.writeString(this.zhuangtai);
            dest.writeStringList(this.tuzhis);
            dest.writeString(this.id);
            dest.writeString(this.name);
            dest.writeString(this.cte_time);
            dest.writeString(this.cte_problem);
        }

        public guimingxi() {
        }

        protected guimingxi(Parcel in) {
            this.guihao = in.readString();
            this.chaidanyuan = in.readString();
            this.chaidanshijian = in.readString();
            this.rucangshijian = in.readString();
            this.fahuoshijian = in.readString();
            this.xiaowujing = in.readString();
            this.zhuangtai = in.readString();
            this.tuzhis = in.createStringArrayList();
            this.id = in.readString();
            this.name = in.readString();
            this.cte_time = in.readString();
            this.cte_problem = in.readString();
        }

        public static final Creator<guimingxi> CREATOR = new Creator<guimingxi>() {
            public guimingxi createFromParcel(Parcel source) {
                return new guimingxi(source);
            }

            public guimingxi[] newArray(int size) {
                return new guimingxi[size];
            }
        };
    }

    public ArrayList<baomingxi> baomingxi=new ArrayList<>();

    public static class baomingxi  {
        public String guihao;//柜号cnum
        public String zhuangtai;//状态status_name
        public String baohao;//包号pnum
        public String leixing;//类型pt_name
        public String rucangyuan;//入仓元warehouser_name
        public String rucangshijian;//入仓时间p_warehousing_time
        public String fahuoyuan;//发货员delivor_name
        public String fahuoshijian;//发货时间p_deliver_time
        public String checi;//车次dc_deliver_car_number
        public String tiaoxingma;//条形码p_code
        public String beizhu;//备注p_remark
        public String position;//仓位
        public String material;//
        public String pallet_num;//托盘号
        public String position_buffer;//缓冲仓位号
        public String height;//高度
        public String zp_ctime;//组盘时间

        @Override
        public String toString() {
            return "baomingxi{" +
                    "guihao='" + guihao + '\'' +
                    ", zhuangtai='" + zhuangtai + '\'' +
                    ", baohao='" + baohao + '\'' +
                    ", leixing='" + leixing + '\'' +
                    ", rucangyuan='" + rucangyuan + '\'' +
                    ", rucangshijian='" + rucangshijian + '\'' +
                    ", fahuoyuan='" + fahuoyuan + '\'' +
                    ", fahuoshijian='" + fahuoshijian + '\'' +
                    ", checi='" + checi + '\'' +
                    ", tiaoxingma='" + tiaoxingma + '\'' +
                    ", beizhu='" + beizhu + '\'' +
                    ", position='" + position + '\'' +
                    ", material='" + material + '\'' +
                    ", pallet_num='" + pallet_num + '\'' +
                    ", position_buffer='" + position_buffer + '\'' +
                    ", height='" + height + '\'' +
                    ", zp_ctime='" + zp_ctime + '\'' +
                    '}';
        }
    }
    public ArrayList<wuliaomingxi> wuliaomingxis=new ArrayList<>();

    public static class wuliaomingxi {

        /**
         * c_cnum : 9-1
         * p_pnum : null
         * mc1_mark : T
         * mc2_mark : UP7
         * mc_2_name : 铝材
         * m_name : KA-231
         * es_type : null
         * m_size : 726
         * color_color : 天然樱桃
         * color_code : 17
         * m_counts : 3
         * unit_unit : 条
         * m_remark : null
         * m_code : A6122476-9-1W04
         * m_DXF : null
         * m_square : 2.1800
         * m_material_num : 1402311748
         * m_thickness : 0
         * mb_weihao : 1
         * m_fangxiang : null
         * m_small_or_big : 大板
         * mb_batch : T16120099
         * m_category : 趟门(T) -> 铝材(UP7)
         * oo_onum  原生产单号
         * cqi_name  质量描述
         * cqi_mark  质量原因
         * co_shouliren  受理客服
         * co_shouli_time  受理时间
         * cor_name  责任方
         * ci_name  收费情况
         */

        public String c_cnum; //'柜号
        public String p_pnum; //包号'
        public String mc1_mark; //类别1
        public String mc2_mark; //类别2'
        public String mc_2_name; //类别'
        public String m_name;  //名称'
        public String es_type; //封边/型号'
        public String m_size;  //规格/开料尺寸
        public String color_color; //颜色
        public String color_code;  //色号'
        public String m_counts;  // '数量'
        public String unit_unit; //单位
        public String m_remark; //'物料备注'
        public String m_code;  //物料条码'
        public String m_DXF; //雕刻机DXF
        public String m_square; //总数'
        public String m_material_num; //ERP编码'
        public String m_thickness;//板厚
        public String mb_weihao; //位号
        public String m_fangxiang;//方向'
        public String m_small_or_big; //大小板件
        public String mb_batch; //节号'
        public String m_category; //物料类别'
        public String oo_onum;//原单号
        public String cqi_name;//质量描述
        public String cqi_mark;//质量原因
        public String co_shouliren;//受理客服
        public String co_shouli_time;//受理时间
        public String cor_name;//责任方
        public String ci_name;//收费情况
        public String area_num;//区号
        public String fangxiang;//方向
        public String finished_size;//成品尺寸
        public String slot_name;//槽位
        public String mm_menjiaokong;//门铰孔


    }

}
